fixed saved image quality issue