fixed 'non-static method' strict warning, added a catch for malformed image data without a file extension

-- small tweak to image importer to allow for empty image fields or
rubbish data without an extension
-- non-static method warnings fix from http://pastebin.com/9QJVwUk2