popNextImage vs getLastImage? which one to use and when?