Changed order of painting, so that title image is always on top.