deleting unneeded files and add resize directives