Refactor image pow tests slightly to test all types to int power and float to float power.