First simple version of PhotoResize extension.