The warning was assuming that the file was a jpeg and it would have been improperly displayed in the non-jpeg case, so removing it entirely is the right thing, I think.