Fix for local image loading