added on filetypes recognition onto the resize func