added imscale, used in player