Fixed crash when having a image as a generated color