imgfy images before passing them into gramework