imgs array was initialized in wrong location b0rked things