making getImg take a set of arguments to make the configuration cleaner