fixed some small errors, splitImages method of ImageManager now works properly