Remove unneeded code now that image libraries use Vec<T>.