interger to image value algorithm

Started up an algorithm that will help determine numbers to images