Fix reading JS Images.