Which mobile phone is better, IPhone s5 or HTC M8/mini?

I was wondering which one is better for me, and btw i like both ios and android, i usually use phones for making art/photos/browsing/music/long time battery/lasts for long
at first i decided Iphone 5 but some people suggested me the HTC m8 or mini2( i don't like big phones)
or if you have any other options/
so please tell me what do you think///.

I'd opt for the iPhone 5s due to better camera, fingerprint sensor, better screen, regular software updates, design and great combination of hardware and software that works fine together.