added post img display logic