Limit the maximum image size which can be loaded from imageUrl