image drawn on rectangle