fixed pixmap handling