Fixed some code for Trainer images in DBManager