Add restrictions for image size and time to scale images.