How to add a custom field for image in “Text and Full Image(text right)” layout?

I had to copy the existing flexible layout to add two new fields using the Advanced Custom Fields plugin. It is also required to have the relevant PHP file copied and modified to display the new field contents.