better image scaling (temporary)