fix gPixmap ref, fix usage of gImage