Finished changing photoencoder.h