Added image scaling & fixed index filename