[BUGFIX] Invalid file used to compute image ratio in text with picture