changing lyears function on image