set image bit depth

Alt solution for large PNG files with imagick (excessive 16 bit/ch bit depth).
Optionally it can be wrapped with if construct for png, but since jpegs and gifs are already at 8 bit, not really needed.