Fixing the issue where the image parameter was always taking the placeholder value