FIXED loadimg() bug--now adds correct file extension