fixed python image loader