Fix image creation