Add basic image sizing by handle and some refactoring.
Add basic image sizing by handle and some refactoring(build files).