Support Flex-embedded bitmaps

Including reftest
Log error occurring during promise resolution to console in debug builds