Fix image page

f.error_messages is old style to show error messages, so I fixed.