Homemade picture resizer using Magick++