main loop, new libs

changed main loop to only run once, recompiled libs with larger buffers
(still doesnt fix large images)