Fix clip issue with bitmaps