fix wrong image size for size like 530x1030