Updates image size