Updated so index based images don't crash the load