Image resizing mostly works now.