rework RecordsState, remove ImageRecordsState and just use RecordsState