Publishing with bitmaps

Sometimes I have a problem publishing to an xfl file. The bitmaps in the library do not save with the xfl save to the LIBRARY folder. I’ve tried resaving as another .fla before re-exporting as an xfl. but I do not seem to find the proper way to overcome this?

Any suggestions? I can’t use the xfl export without the library images.
I know this is a know bug. But how do i defeat it?