separate image from main