added quality options for reading bitmaps