Modified the cost calculuations to appropriately compute the cost using the scale

The "cost" algorithm doesn't really use the scale appropriately.  (scale images are 4 times larger, not 2).
And I have a mix of images with difference scales that appear in the cache, so the concern is that it can't compute the costs appropriately.