Removed testing code from ImageRegistry