updating image size