Fixed the masked bitmap handling. (converting the "pdfscreen" manual