added tools for resizing and fitting images