Image resizing support and local link fixes