Fixed images bug, no longer crashing

This doesn't fix the crash though. Sometimes minID is nil and then it'll still crash.