Changed the imgout function identifier

Changed the name of the function to something that makes more sense. It
also wasn't camel case, and one of the lines had an imgOut variable that
I wanted to keep.