Added loadimage
Small compatibility tweaks