Implemented image scaling to fit the screen