php gallery and cut corners