Added actorAPI to generateImage
ImageWriter actor behaves correctly now
image writer uses new asyncAPI