fixed image scaling in res.inc