fixed image fetching array logic, etc