Created script to decode image