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