fix bitmap config use

the main change is I re-wrote it to always use inPreferredConfigand always use inBitmap.