Allow passing type into load-image.