Last version with painter