Added image processing, receiving 'to_f' error