Add img size constraint to common package.
Extract ImageService API calls to wrapper class.
Fix issue #58 Input image size is not validated.