trapping for a scenario where input is an object
removed unused png
removing falsy values from data that is passed in