fixed bug that prevented initial image from being drawn