added separate image stretches and fixed bugs relating to astr_ptr