Fix an issue (division by zero) that happened when you created a new image