Set image width to prevent repaints