DECUPAS-25: Resize images
DECUPAS-25: Fix PHP warnings and add paging parameters to advantages