Updated image scaling