update with a direct db write
correctly pass width & height if attributes are set. Also crop for those with WP Thumb