fix #421  jquery parsererror when creating a card with image file