fixed the missing functions:: missing for loadImage()