format images to pascal for hashing