Added image property parameter to draw function.