Versatile picture resizer