Support Flex-embedded bitmaps

Including reftest
Log error occurring during promise resolution to console in debug builds
Remove superfluous image from flex-image test
Fix linter issue
Merge pull request #804 from tschneidereit/master

Support Flex-embedded images