add SCALE_FIT
drop incorrect use of imagecopyresize
correct namespace usage and CS
Merge branch 'staging' of https://github.com/joomla/joomla-framework into feature_Image-SCALE_FIT
Merge pull request #223 from piotr-cz/feature_Image-SCALE_FIT

Feature: Image scaling method: SCALE_FIT