FindImage not working after updating to uipath 2018

I have a custom solution executed in C# using ui automation api references. This was built on Windows 7 and uipath 2016.
I recently migrated to Windows 10 and uipath 2018 and the classes and methods are no longer supported after migrating. Please help.