image resizing and screenshot generation