Use Profile values to calculate Image sizes. Fixes #186
Merge branch 'fix-s3-#186'