added  option imgmax parsm to photo.url method