dynamic photo generation, redirect on user page, update db