added camera image scaling