Refactor and move method into the specific and only place it is used
Pull out image inlining module
Pull out script inlining module