optimise sample photos