Bug fix for image linking.