Added another method for drawing image