Converted img positioning from absolute to dynamic through css