Set the popup source during init of the image

Additionally set the “hasNextPrevious” flag to force the buttons when
using imageflow.