Remove map entry when it's not needed. Avoid one copy. Removed unnecessary include. Added cropping of the image if it should be saved.
Remove map entry when it's not needed. Avoid one copy.
Removed unnecessary include. Added cropping of the image if it should be saved.

BUG=chromium-os:2348
TEST=Check that changed image is cropped and scaled to be a square picture.
R=altimofeev@chromium.org

Review URL: http://codereview.chromium.org/6696045

git-svn-id: http://src.chromium.org/svn/trunk/src@78535 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Former-commit-id: 28918df89283705653e139f6f693cf59dc2daebb
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser