updated with change of image size