float img to pdf