Using subprocess.call instead of os.system
If generation of an image preview fails, it should redirect to a generic 'No Preview Available' image.