Remove 32-bit preference.
Use recursion instead of loops for image format processing.