Implement gallery and screen scaling.