begin image manipulation