Make sure everything is ready on imageBuffer before CGBitmapContextCreate