change the handling for image creation in views/default/view, minor fix