Instead of analyzing image size using the local file, rely on a processed image of the appropriate dimensions. Resolves #1828