The whole program is now capable of working with dynamic pixel sizes.