Basic page and input logic
Implemented 1/4 image creation (the algo MUST be changed)