Fix for type conversion on image batch creation