adjusted to changes on the imgtoIj converter