Avoid conversions when loading images

This speeds up the processes and reduces memory usage