Fix modulo in photo download