Implement imgrate from old favorite database