(syntax error) added optional name to getImageFromTexture()