fix the bug with image size