External onclick handler for media cropping.