adding correct methos to renderImages function