Use images as base64 strings instead of loading them with ajax