Add sort logic and view images after upload in add.ctp