added pagination, working on images