updated images controller to fix std class error