created prototype function on Collection to render next photo