let phantomjs handle imagetypes