trimming image addres