fixed bugs (photos from groups didn't worked)

also fixed bug with small photos