image pagination now working and settings working as well.