The biggest problem I can see being current consumption. The iMac has got a 24" screen which means it's driving inverters, it's got dedicated graphics and should be quite a power hungry beast. However, the 24 inch screen also allows a large space to mount the batteries behind the case/screen.