Validate file type of uploaded graphic.  Closes #272