adding some image processing stuff