Modified the cost calculuations to appropriately compute the 'scale' of an image
Merge commit '7d9337406760603ddee47d5515e1e4835618b6b2' into cost_compute_fix
Merge pull request #941 from mishagray/cost_compute_fix

Cost compute fix