Refactoring
Added fixed resize (with Shift key) on images
Removed unused code