improve code quality separate complicated entities
ImageResizeHandler updated to improve code quality score