Asynchronously encode BitmapData objects into image file format