bugfix: didnt import image_utils
bugfix where Index object was passed as an int