added irate/  fixed image scaling