Adding parameter to decide if we want to convert the image src path or not