removed unnessecaryparameters from draw_gfx function