change photo entity