updates image size