``gain`` is something specific to CCDs, so it could belong in a CCDImage class.