Add pic to canvas as image object. Refctoring.