implement OSImageToImage Function

implement OSImageToImage Function

implement OSImageToImage Function

Code Style Changes

chahnge locations list to location

Address test failiures

Address Review Suggestions