added global scrdim var,fixed loadimage warning