updated gallery cover logic
fixed public photo issues, updated edit photo functionality