Updated standalone version to use better methods of loading image.