first step to work with images