Fix for supplying a full MIME type, rather than just the stuff after the "image/".  Preserves backward compatibility.