European Court of Justice rules in photographer's favour after pupil uses his photo on school website.