Lazy load not loading

Fix the lazy load feature if you only have the a number of picture <= total number of picture

Signed-off-by: Benjamin Mosnier <bm@kappuccino.org>