parseInt on imageindex from url