frame offsets in vector, not array
got rid of some unnecessary stuff
frame is now a vector, not an array