change image number limits
use samples to resolve g. code refactor