Only grab dimensions for image types.