Fixed a bug that caused the image size not to be affected by the dimension settings