Quick change to picture loads.

Need to do error checking so just remove this for right now.
Bug fix: distance function.

Typo: should have been class intsance.