Fixed problem with images being imported as NoneType due to 1.4 backwards compatibility.