Some more additions to the picture loading function in main.c (not complete yet, though, nor tested yet)