fixing bug that prevented initial image from being completely drawn on screen