Image upload preview widget: The field returns an error when uploading an image