Cleaned up imagen/views.py