improved reset functionality of update pixmap