Updated drawing code for retina