Adding images to forms using an image field results in server errors