OP:
This is my opinion only, but you really don't want to run anything past 10.8.5 on an older iMac with only a platter-based hard drive.
The newer OS may run, BUT… the user experience will be more like the OS is "walking", instead of "running", if you get my drift.
Perhaps it's time to start shopping for something newer… 😉