add limits in photomanager