Image detection now works, but isnt perfect.