Effects of Composition and Strain on Image Contrast in Atomic-Resolution Transmission Electron Microscopy