update to make pretty photo work