crop funtionality before uploading an image

crop funtionality before uploading an image, limiting to 100x100 pixels