split graphic stuff in an own object