Fixed bug on new image creation