troubleshooting images code